<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03_JS函数</title>
</head>
<body>
<script>
    function f1(){
        console.log('f1被调用了！');
    }
    f1();
    function f2(a){
        console.log(a)
    }
    f2(true);
    function f3(a,b){
        console.log(a+b)

    }
    f3(3,2)
    f3("a","b")
    f3('a','b')
    f3('a',3)
    f3("a")
    f3(1)
    f3(3,2,1)

    function f4(x,y){
        return x+y
    }
    console.log(f4(3,4));
    f4(3,2);
    let res=f4(1,2)
    console.log(res)

    var f5=function(){
        console.log('函数被调用')
    }
    f5();
    console.log(f5,typeof f5)

    const f6=() =>{
        console.log('箭头函数被调用了')
    }
    f6();
    console.log(f6);
    console.log(typeof f6);
</script>
</body>
</html>